package car.aistar.dto;

import java.util.Date;

/**
 * @ClassName XxrRecordDto 用与销售页面的交易记录查询
 * @Description TODO
 * @Author 肖
 * @Date 2020/10/6 21:11
 * Version 1.0
 **/
public class XxrRecordDto {
    /**
    *@Author 肖相荣
    *@Description //TODO 交易记录表id
    *@Date 21:25 2020/10/6
    *@Param
    *@return
    **/
    private Long id;
    /**
     *@Author 肖相荣
     *@Description //TODO 车的ID
     *@Date 19:49 2020/10/4
     *@Param
     *@return
     **/
    private Long carId;
    /**
     *@Author 肖相荣
     *@Description //TODO 买家name
     *@Date 20:20 2020/10/4
     *@Param
     *@return
     **/
    private String uname;
    /**
     *@Author 肖相荣
     *@Description //TODO 买家phone
     *@Date 19:48 2020/10/4
     *@Param
     *@return
     **/
    private String uphone;
    /**
     *@Author 肖相荣
     *@Description //TODO 卖家name
     *@Date 20:20 2020/10/4
     *@Param
     *@return
     **/
    private String oname;
    /**
     *@Author 肖相荣
     *@Description //TODO 卖家phone
     *@Date 19:48 2020/10/4
     *@Param
     *@return
     **/
    private String ophone;

    /**
    *@Author 肖相荣
    *@Description //TODO 成交价格
    *@Date 21:16 2020/10/6
    *@Param
    *@return
    **/
    private Double rePrice;
   /**
   *@Author 肖相荣
   *@Description //TODO 车辆底价
   *@Date 21:16 2020/10/6
   *@Param
   *@return
   **/
    private Double cOprice;
    /**
    *@Author 肖相荣
    *@Description //TODO 成交时间
    *@Date 21:16 2020/10/6
    *@Param
    *@return
    **/
    private Date reTime;

    public XxrRecordDto (){
    }

    public XxrRecordDto (Long carId, String uname, String uphone, String oname, String ophone, Double rePrice, Double cOprice, Date reTime){
        this.carId = carId;
        this.uname = uname;
        this.uphone = uphone;
        this.oname = oname;
        this.ophone = ophone;
        this.rePrice = rePrice;
        this.cOprice = cOprice;
        this.reTime = reTime;
    }

    public XxrRecordDto (Long id, Long carId, String uname, String uphone, String oname, String ophone, Double rePrice, Double cOprice, Date reTime){
        this.id = id;
        this.carId = carId;
        this.uname = uname;
        this.uphone = uphone;
        this.oname = oname;
        this.ophone = ophone;
        this.rePrice = rePrice;
        this.cOprice = cOprice;
        this.reTime = reTime;
    }

    public Long getId (){
        return id;
    }

    public void setId (Long id){
        this.id = id;
    }

    public Long getCarId (){
        return carId;
    }

    public void setCarId (Long carId){
        this.carId = carId;
    }

    public String getUname (){
        return uname;
    }

    public void setUname (String uname){
        this.uname = uname;
    }

    public String getUphone (){
        return uphone;
    }

    public void setUphone (String uphone){
        this.uphone = uphone;
    }

    public String getOname (){
        return oname;
    }

    public void setOname (String oname){
        this.oname = oname;
    }

    public String getOphone (){
        return ophone;
    }

    public void setOphone (String ophone){
        this.ophone = ophone;
    }

    public Double getRePrice (){
        return rePrice;
    }

    public void setRePrice (Double rePrice){
        this.rePrice = rePrice;
    }

    public Double getcOprice (){
        return cOprice;
    }

    public void setcOprice (Double cOprice){
        this.cOprice = cOprice;
    }

    public Date getReTime (){
        return reTime;
    }

    public void setReTime (Date reTime){
        this.reTime = reTime;
    }

    @Override
    public String toString (){
        final StringBuilder sb = new StringBuilder("XxrRecordDto{");
        sb.append("id=").append(id);
        sb.append(", carId=").append(carId);
        sb.append(", uname='").append(uname).append('\'');
        sb.append(", uphone='").append(uphone).append('\'');
        sb.append(", oname='").append(oname).append('\'');
        sb.append(", ophone='").append(ophone).append('\'');
        sb.append(", rePrice=").append(rePrice);
        sb.append(", cOprice=").append(cOprice);
        sb.append(", reTime=").append(reTime);
        sb.append('}');
        return sb.toString();
    }
}
